package com.teamall.web.sjtj.db.dao;

import com.teamall.core.common.Page;
import com.teamall.web.app.db.dao.mapper.ITestMapper;
import com.teamall.web.sjtj.db.arg.CodeVisitedTownRankArg;
import com.teamall.web.sjtj.db.dao.mapper.ISjtjJzsbMapper;
import com.teamall.web.sjtj.db.po.CodeVisitedTownRankPO;
import com.teamall.web.sjtj.vo.*;
import com.teamall.web.sys.db.po.SysInfoPO;
import com.teamall.web.sys.db.po.SysUserPO;
import org.mybatis.spring.SqlSessionTemplate;
import org.mybatis.spring.support.SqlSessionDaoSupport;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

/**
 * ${DESCRIPTION}
 *
 * @author
 * @create 2017-09-08 0:51
 **/
@Repository
public class SjtjJzsbDao extends SqlSessionDaoSupport {
    @Resource(name = "majorSqlSessionTemplate")
    public void setSqlSessionTemplate(SqlSessionTemplate sqlSessionTemplate) {
        super.setSqlSessionTemplate(sqlSessionTemplate);
    }

    public ISjtjJzsbMapper getMapper() {
        return getSqlSession().getMapper(ISjtjJzsbMapper.class);
    }

    public List<SysUserPO>  getSysUser(String date) {
        return  getMapper().getSysUser(date);
    }
    /**
     * 精准扶贫的图表
     * @param date
     * @return
     */
    public List<PkfbChatVO>  getPkfbMain(String date) {
        return  getMapper().getPkfbMain(date);
    }
    public List<PkfbTableVO> getPkfbTableData(String date){
        return  getMapper().getPkfbTableData(date);
    }
    public List<ZpyyChatVO>  getZpyyMain(String date) {
        return  getMapper().getZpyyMain(date);
    }
    public List<ZpyyTableVO> getZpyyTableData(String date){
        return  getMapper().getZpyyTableData(date);
    }
    public List<PksrTableVO> getPksrTableData(String date){
        return  getMapper().getPksrTableData(date);
    }
}
